//
//  CustomMessageModel.h
//  FFMall
//
//  Created by ale tan on 2017/9/26.
//  Copyright © 2017年 IT.Bear. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JMessage.h"
#import "CustomMessageBaseCell.h"
#import "CustomMessageTextCell.h"
#import "CustomMessageImageCell.h"
#import "CustomMessageCoreCell.h"
#import "FBOrderModel.h"

#define CellReuseIDWithSenderAndType(isSender,chatCellType)    ([NSString stringWithFormat:@"%@-%@",isSender,chatCellType])

typedef enum : NSUInteger {
    CustomMessageTypeText=1,
    CustomMessageTypeImage=2,
    CustomMessageTypeProduct=3,
    CustomMessageTypeOrder=4,
    CustomMessageTypeConsult=5,
    CustomMessageTypeRefund=6,
} CustomMessageType;

@interface CustomMessageModel : NSObject

+ (void)sendMessageToService:(JMSGMessage *)message;

+ (CGFloat)cellHeightWithMessage:(JMSGMessage *)message;

+ (CustomMessageBaseCell *)cellWithMessage:(JMSGMessage *)message InTableView:(UITableView *)tableView;

@end
